/*=+--+=#=+--     Unmanned Aerial System Management Software      --+=#=+--+=#*\
|          Copyright (C) 2011 Regents of the University of Colorado.           |
|                             All Rights Reserved.                             |

     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License
     along with this program.  If not, see <http://www.gnu.org/licenses/>.

            Jack Elston                       Cory Dixon                        
|           elstonj@colorado.edu              dixonc@colorado.edu              |
|                                                                              |
\*=+--+=#=+--                 --+=#=+--+=#=+--                    --+=#=+--+=#*/

/***********************************************************************
 *                      
 * FILENAME:
 * joystickStruct.h
 *
 * PURPOSE:
 *      To provide the shared memory structure that is shared across
 * 	the different threads.
 *
 *
 * LAST MODIFIED:
 * $Date: 2005/07/26 19:43:28 $
 * $Revision: 1.4 $
 * $Author: dixonc $
 ***********************************************************************/ 

#ifndef _SHM_STRUCT_GATEWAY
#define _SHM_STRUCT_GATEWAY

#include <pthread.h>
#include <inttypes.h>

#include "clientList.h"
#include "capabilitiesManager.h"
#include "commandStruct.h"

/************************************************************\
|                 communications timing                      |
\************************************************************/
    /*! \brief usec portion of timeout for file handle select. */
    #define TIME_OUT_USEC 10000
    /*! \brief sec portion of timeout for file handle select. */
    #define TIME_OUT_SEC 0

typedef struct _ShmStruct
{
	pthread_mutex_t mtx;

	ClientList clients;
	CapabilitiesManager capabilities;

} ShmStruct;

#endif
